//
//  YCCoreDataManager.h
//  DemoCoreData
//
//  Created by tangkexiong on 16/3/14.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <CoreData/CoreData.h>

#pragma mark - YCCoreDataManager

/**
 *  CoreData管理
 */
@interface YCCoreDataManager : NSObject

+ (instancetype)sharedInstance;

#pragma mark - Core Data

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;

@end
